package com.action.member;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.controller.Action;
import com.dao.MemberDao;
import com.domain.Member;

public class InputProAction implements Action{
	@Override
	public String execute(HttpServletRequest request,
			HttpServletResponse response) throws Exception {
		
		request.setCharacterEncoding("euc-kr");
		Member member = new Member();
		
		member.setMem_id(request.getParameter("mem_id"));
		member.setMem_name(request.getParameter("mem_name"));
		member.setPasswd(request.getParameter("passwd"));
		member.setPhone(request.getParameter("phone"));
		member.setGender(request.getParameter("gender"));
		member.setLikebook(request.getParameter("likebook"));
		
		MemberDao dao = MemberDao.getinstance();
		
		dao.JoinMember(member);
		
		return "/view/member/inputPro.jsp";
	}
}
